﻿<UserControl x:Class="CodeCounsel.SharePoint.RibbonDesigner.View.OverflowRow" 
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:v="clr-namespace:CodeCounsel.SharePoint.RibbonDesigner.View"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:a="clr-namespace:CodeCounsel.SharePoint.RibbonDesigner.View.AttachedBehaviors"
             mc:Ignorable="d">
    <ItemsControl ItemsSource="{Binding Items}" Focusable="False">
        <ItemsControl.ItemsPanel>
            <ItemsPanelTemplate>
                <StackPanel Orientation="Horizontal" />
            </ItemsPanelTemplate>
        </ItemsControl.ItemsPanel>
        <ItemsControl.ItemTemplate>
            <DataTemplate>
                <ContentControl 
                    Margin="2"
                    a:VisualFocusManager.IsSelectable="True"
                    a:VisualFocusManager.FocusVisualStyle="{DynamicResource focus}"
                    Content="{Binding}" />
            </DataTemplate>
        </ItemsControl.ItemTemplate>
    </ItemsControl>
</UserControl>
